Kalman model
What is Kalman Model/Filter
When the hidden variables of a Markov Chain are continuous and probability distributions are Gaussians, then the model is usually called a Kalman model.
- When these models are used to make estimates about a given point of time, given only the past, they are generally called “filters” (Kalman filter)
- when they make estimates given both past and future, they are called “smoothers.”
How does it work
Kalman filters lie in the linear dynamical system
where
Thus, a Kalman filter estimates a posterior probability distribution recursively over time using a mathematical model of the process and incoming measurements.
The posterior mean can be expressed as:
where
Implement Kalman filter with the sum rule and product rule for Gaussians
Step 1: Change yesterday's posterior into today's prior
Use the mathematical model to calculate how deterministic changes in the process shift yesterday's posterior,
where
Step 2: Multiply today's prior by likelihood
Use the latest measurement to form a new estimate somewhere between this measurement and what we predicted in Step 1. The next posterior is the result of multiplying the Gaussian computed in Step 1 (a.k.a. today's prior) and the likelihood, which is also modeled as a Gaussian
2a: add information from prior and likelihood
To find the posterior variance, we first compute the posterior information (which is the inverse of the variance) by adding the information provided by the prior and the likelihood:
Now we can take the inverse of the posterior information to get back the posterior variance.
2b: add means from prior and likelihood
To find the posterior mean, we calculate a weighted average of means from prior and likelihood, where each weight,